﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public abstract class AniDecorator : AniBehavior {
    private AniBehavior aniBehavior = null;

    public AniDecorator(AniBehavior aniBehavior) {
        this.aniBehavior = aniBehavior;
    }

    public override Tweener Play(Transform transform) {
        if (aniBehavior != null)
            return this.aniBehavior.Play(transform);
        else
            return null;
    }

    public override Tweener Rewind(Transform transform)
    {
        if (aniBehavior != null)
            return this.aniBehavior.Play(transform);
        else
            return null;
    }
}
